package com.eos.control.action.customer;

import com.eos.business.service.SysCustomerBusinessService;
import com.eos.control.action.base.AbstractBaseAction;
import com.eos.orm.mybatis.model.SysCustomer;

public class EditCustomerAction extends AbstractBaseAction {
	private static final long serialVersionUID = -225293999185536203L;
	private Integer customerId;
	private SysCustomer customer;
	
	public void setCustomerId(Integer customerId) {
		this.customerId = customerId;
	}

	public SysCustomer getCustomer() {
		return customer;
	}

	@Override
	public String execute() {
		 try {
			 SysCustomerBusinessService scbs = new SysCustomerBusinessService();
			 customer = scbs.getSysCustomer(customerId);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return SUCCESS;
	}
}
